import React, { Component } from 'react';
import {
  BrowserRouter as Router,
  Route,
  Switch
} from 'react-router-dom'
import Home from "./pages/home";
import City from "./pages/city";
import detail from "./pages/detail";

class Routers extends Component {
  render() {
    return (
      <Router>
        <Switch>
          <Route  path="/City" component={City}/>
          <Route exact path="/" component={Home}/>
          <Route exact path="/Home" component={Home}/>
          <Route path="/detail" component={detail}/>
        </Switch>
      </Router>
    );
  }
}

export default Routers;
